package cn.shangtour.common.vo;


public class SceneryResult {
		//表示状态码的数字
		private Integer status;
		//携带详细信息的字符串
		private String msg;
		//携带的各种数据
		private Object data;
		//准备一个封装数据的构造方法
		public SceneryResult(Integer status,String msg,Object data){
			this.status=status;
			this.msg=msg;
			this.data=data;
		}
		public SceneryResult(){
			
		}
		public static SceneryResult build(Integer status,String msg,Object data){
			return new SceneryResult(status, msg, data);
			}
		public static SceneryResult ok(){
			return new SceneryResult(200, "ok", null);
			}
		public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
		public String getMsg() {
			return msg;
		}
		public void setMsg(String msg) {
			this.msg = msg;
		}
		public Object getData() {
			return data;
		}
		public void setData(Object data) {
			this.data = data;
		}
		
		
		
}
















